package cn.myjerry.pattern.singleton;

/**
 * 测试静态内部类单例模式
 * @author Jerry
 *
 */
public class SingletonDemo03 {

	private static class Singleton {
		private static SingletonDemo03 instance  = new SingletonDemo03();
	}
	
	private SingletonDemo03() {}
	
	public static SingletonDemo03 getInstance() {
		return Singleton.instance;
	}
	
}  